package com.industry.system.convert;

import com.industry.system.controller.vo.MenuRespVO;
import com.industry.system.controller.vo.MenuTreeRespVO;
import com.industry.system.dal.dataobject.SystemMenu;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface MenuConvert {
    MenuConvert INSTANCE = Mappers.getMapper(MenuConvert.class);

    MenuRespVO convert(SystemMenu menu);

    List<MenuRespVO> convertList(List<SystemMenu> menuList);

    MenuTreeRespVO convertTreeBase(SystemMenu menu);
}
